package weekendpractice.AnimalZoo;

public class Turtle extends Animal implements LayEggs, Swim {
     Turtle(int age, String name, String color) {
        super(age, name, color);
    }

    @Override
    void eat() {
        System.out.println(name+" eat meat??");
    }
    public void layEggs(){
        System.out.println("sure, turtle eggs...");
    }

    @Override
    public void swim() {
        System.out.println("the turtle "+name+" can also swim!!");
    }
}
